Imports Microsoft.VisualBasic

Public Class OrdenTrabajo
    Private _id As Integer
    Private _descripcion As String
    Private _fkPresupuesto As Integer
    Private _estado As String
    Private _fechaTermino As String
    Private _requisicion As String
    Private _ordenCompra As Integer
    Private _taller As String
    Private _CreadoEl As String
    Private _CreadoPor As String


    Public Sub New(ByVal _descripcion As String, ByVal _fkPresupuesto As Integer, ByVal _estado As String, ByVal _fechaTermino As String, ByVal _requisicion As String, _
                  ByVal _ordenCompra As Integer, ByVal _taller As String, ByVal _CreadoEl As String, ByVal _CreadoPor As String, Optional ByVal _id As Integer = 0)

        Me._id = _id
        Me._descripcion = _descripcion
        Me._fkPresupuesto = _fkPresupuesto
        Me._estado = _estado
        Me._fechaTermino = _fechaTermino
        Me._requisicion = _requisicion
        Me._ordenCompra = _ordenCompra
        Me._taller = _taller
        Me._CreadoEl = _CreadoEl
        Me._CreadoPor = _CreadoPor
    End Sub

    Public Property CreadoEl() As String
        Get
            Return _CreadoEl
        End Get

        Set(ByVal value As String)
            _CreadoEl = value
        End Set
    End Property

    Public Property CreadoPor() As String
        Get
            Return _CreadoPor
        End Get

        Set(ByVal value As String)
            _CreadoPor = value
        End Set
    End Property

    Public Property Taller() As String
        Get
            Return _taller
        End Get

        Set(ByVal value As String)
            _taller = value
        End Set
    End Property

    Public Property Requisicion() As String
        Get
            Return _requisicion
        End Get

        Set(ByVal value As String)
            _requisicion = value
        End Set
    End Property

    Public Property Estado() As String
        Get
            Return _estado
        End Get

        Set(ByVal value As String)
            _estado = value
        End Set
    End Property


    Public Property Fecha() As String
        Get
            Return _fechaTermino
        End Get

        Set(ByVal value As String)
            _fechaTermino = value
        End Set
    End Property

    Public Property FkPresupuesto() As Integer
        Get
            Return _fkPresupuesto
        End Get

        Set(ByVal value As Integer)
            _fkPresupuesto = value
        End Set
    End Property

    Public Property OrdenCompra() As Integer
        Get
            Return _ordenCompra
        End Get

        Set(ByVal value As Integer)
            _ordenCompra = value
        End Set
    End Property

    Public Property Descripcion() As String
        Get
            Return _descripcion
        End Get

        Set(ByVal value As String)
            _descripcion = value
        End Set
    End Property

    Public Property Id() As Integer
        Get
            Return _id
        End Get

        Set(ByVal value As Integer)
            _id = value
        End Set
    End Property

End Class
